package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffDeptBusinessIdentityDto
 * @使用场景
 */
@Data
public class BffDeptBusinessIdentityDto implements Serializable {

    /**
     * 部门业务身份标识
     */
    @ApiModelProperty("部门业务身份标识")
    private String deptBusinessIdentityCode;

    /**
     * 部门业务身份名称
     */
    @ApiModelProperty("部门业务身份名称")
    private String deptBusinessIdentityName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffDeptBusinessIdentityDto that = (BffDeptBusinessIdentityDto) o;
        return deptBusinessIdentityCode == that.deptBusinessIdentityCode && deptBusinessIdentityName == that.deptBusinessIdentityName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), deptBusinessIdentityCode, deptBusinessIdentityName);
    }

}
